package net.wicp.tams.common.test.di;

import javax.inject.Inject;

import com.google.inject.Guice;;

public class Consume {
	private Provider provider;

	public Provider getProvider() {
		return provider;
	}

	public void setProvider(Provider provider) {
		this.provider = provider;
	}

	@Inject
	Consume(Provider provider) {
		this.provider = provider;
	}

	public static void main(String[] args) {
		Consume consume = Guice.createInjector().getInstance(Consume.class);
		System.out.println(consume.getProvider().getV1());

	}

}
